package fhq.hcmute.edu.vn.network;

import java.io.Serializable;
import java.util.Locale;

public class PhoneInfos implements Serializable {

	private static final long serialVersionUID = -2910023858026654154L;
	private String password;
	private String deviceName;
	private String deviceModelNumber;
	private String phoneIMEI;

	public PhoneInfos(final String password, final String deviceName,
			final String deviceModelNumber, final String phoneIMEI) {
		this.password = password;
		this.deviceName = deviceName;
		this.deviceModelNumber = deviceModelNumber;
		this.phoneIMEI = phoneIMEI;
	}

	public final String getPassword() {
		return password;
	}

	public final void setPassword(final String password) {
		this.password = password;
	}

	public final String getDeviceName() {
		return deviceName;
	}

	public final void setDeviceName(final String deviceName) {
		this.deviceName = deviceName;
	}

	public final String getDeviceModelNumber() {
		return deviceModelNumber;
	}

	public final void setDeviceModelNumber(final String deviceModelNumber) {
		this.deviceModelNumber = deviceModelNumber;
	}

	public final String getPhoneIMEI() {
		return phoneIMEI;
	}

	public final void setPhoneIMEI(final String phoneIMEI) {
		this.phoneIMEI = phoneIMEI;
	}

	@Override
	public String toString() {
		return String.format(Locale.US, "%s,%s,%s,%s", deviceName,
				deviceModelNumber, phoneIMEI, password);
	}
}
